namespace VegetableSale.NET.Entities;

public class SysResult 
{
    //判断结果
    private bool success;
    //返回信息
    private String message;

    public SysResult(bool success, string message)
    {
        this.success = success;
        this.message = message;
    }

    public bool Success
    {
        get => success;
        set => success = value;
    }

    public string Message
    {
        get => message;
        set => message = value ?? throw new ArgumentNullException(nameof(value));
    }
}